package com.ljs.view.world
{
	
	import com.ljs.control.MainContent;
	
	import flash.display.MovieClip;

	public class WorldControl extends MovieClip
	{
		private var _worldDynObj:WorldDynObj;
		private var _worldUI:WorldUI;
		private var _worldEffect:WorldEffect;
		private var _content:MainContent;
		public function WorldControl()
		{
			_worldDynObj=new WorldDynObj();
			addChild(_worldDynObj);
			_worldUI=new WorldUI();
			addChild(_worldUI);
			_worldEffect=new WorldEffect();
			addChild(_worldEffect);
		}
		
		public function setContent(c:MainContent)
		{
			_content=c;
			_worldDynObj.setContent(c);
			_worldUI.setContent(c);
			_worldEffect.setContent(c);
		}
		
		public function createWorld()
		{
			_worldDynObj.create();
			_worldUI.create();
			_worldEffect.create();
		}
	}
}